← Back to issue list

$SNAPCRAFT_PROJECT_NAME used in a remote part expands to wrong value

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1766878
Type
issue
State
open
Author
~lucyllewy
Labels
Created
2018-04-25 13:46:50.953921+00:00
Updated
2024-05-10 07:22:03.509624+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

In my alsa remote part I've attempted to use $SNAPCRAFT_PROJECT_NAME to build a path to the final snap installation directory expecting it to expand to the name of the consuming snapcraft.yaml. Instead it expands to `alsa` because that's the name on the snapcraft.yaml containing the remote part. This is counter-intuitive; I expect $SNAPCRAFT_PROJECT_NAME to always be the project that snapcraft started building - i.e. the consumer of the remote part, and not the name of any remote parts included as a dependency.

Evaluation history

No evaluation history available.